package com.fortune.rainshinecommon.util;


import javax.servlet.http.HttpServletRequest;


/**
 * @ClassName: SignUtils
 * @Description: 生成签名方法
 * @author zhangxin
 * @date 2019年3月20日
 */
public class SignUtils {
    public static  String getSign(HttpServletRequest request, String token, String timestamp) {
      
        return SignUtils.generSign(token, timestamp,"sxmy");
    }

    public static String generSign(String token,String timestamp,String str){
        String sign=token+timestamp+str;
        return new MD5Utils().string2MD5(sign).toLowerCase();
    }
}
